package com.ligure.controller;

import com.ligure.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/demo")
public class HomeController {
    @Autowired
    DemoService demoService;

    @GetMapping("/home")
    public String home() {
        System.out.println("#####home#####");
        return demoService.hello();
    }

}